<?php	
	$path_one = 'admin/admin_project';
	$path_two = 'admin/car_set';
	$filename = 'admin/car_set';
	require_once("header.php");
	require_once("admin_comm.php");
	require_once $_site->get_handlepath('project');
			
	$id=request('id',false,true,false,0);
	if(!$id)return false;
	
	$project=new project();
	$pinfo=$project->info($id);
	if(empty($pinfo))return false;
	


	if($pinfo['config']){
		$config=stringToarray($pinfo['config']);
		$a=$config['a'];
		$b=$config['b'];
		$c=$config['c'];
		$x=$config['x'];
		$y=$config['y'];
		$z=$config['z'];
	}
		
?>
<script type="text/javascript" charset="utf-8">
	loader.file({
		plugin:['validform/main','dialog/main'],
		skincss:['list']
	})		
</script>
<style>
.dishes_top{width:100%}
.dishes_top a{text-decoration:none}
.dishes_top ul{float:left;width:100%;margin-top:10px}
.dishes_top ul li{display:inline-block;padding:0 1px}
.dishes_top ul li a{display:block;font-size:14px;height:35px;line-height:35px;width:90px;background-color:#eeeeee;color:#454545;font-size:14px;text-align:center}
.dishes_top ul li a:hover{background-color:#79473a;color:#ffffff}
.dishes_top ul li a.hover{background-color:#79473a;color:#ffffff}
.oper .btn{padding: 5px;background: red;color: white;border-radius: 2px;padding: 5px 15px;display: inline-block;cursor: pointer;}
.oper a:hover{background-color:#790d0d;text-decoration:none !important;color:white !important}
</style>
</head>
<body>
	<div class="position_nav">你所在的当前位置：工程项目 > 项目参数设置</div>
		<div class="main">			
			
			<table cellpadding="0" cellspacing="1" border="0" class="table">

				<tr>
					<td>
						<div class="list_more">
							<font color="red"><?php echo $pinfo['title'];?></font>
						</div>
					</td>
				</tr>
								
			</table>      
      
      <form action="/handle.php" method="post" id="form2">
      <input type="hidden" name="h" value="project/config">
      <input type="hidden" name="pid" value="<?php echo $id;?>">

			<table cellpadding="0" cellspacing="1" border="0" class="table">			
	    

				<tr>
					<th align="center">渣车车型</th>
					<th align="center">土石类型</th>	
				</tr>	
						
				<tr>
					<td align="center">A -- <input type="text" name="a" value="<?php echo $a;?>"></td>
					<td align="center">Ⅰ -- <input type="text" name="x" value="<?php echo $x;?>"></td>
				</tr>
				
				<tr>
					<td align="center">B -- <input type="text" name="b" value="<?php echo $b;?>"></td>
					<td align="center">Ⅱ -- <input type="text" name="y" value="<?php echo $y;?>"></td>
				</tr>

				<tr>
					<td align="center">C -- <input type="text" name="c" value="<?php echo $c;?>"></td>
					<td align="center">Ⅲ -- <input type="text" name="z" value="<?php echo $z;?>"></td>
				</tr>	

			<tr>
				<td colspan="2" align="center">
                      <input type="button" value="修  改" class="button1" onclick="postconfig();">&nbsp;&nbsp;                      
				</td>
			</tr>
				
						
			</table>	
			</form>	
<script type="text/javascript">			
function postconfig(){
	$.post("/handle.php",$("#form2").serialize(),function(res){
		if(res.state){					
			location.reload(true);
			return;
		}
		alert(res.msg);
		},'json');            
}
</script>


		</div>
	</div>
</body>
</html>
			